package cevent.source.cloudcenter.server.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;


/**
 * @author cevent
 * @description 文件资源管理表 模块传输层
 */
public class FileDto {

        //唯一ID
        private String uniId;
        //文件名
        private String name;
        //文件相对路径
        private String path;
        //模块ID
        private String moduleId;
        //上传用户ID
        private String userId;
        //文件后缀
        private String suffix;
        //大小|字节B
        private Integer size;
        //文件上传类型
        private String contentType;
        //资源类型
        private Integer typeId;
        //应用场景|P公共资源|I私有资源|D公司宣传资料|A公司活动资料|C公司产品资料|T其他
        private String useType;
        //显示1 || 不显示0
        private Integer isShow;
        //创建时间
            @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date createTime;
        //修改时间
            @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date updateTime;

        private Integer shardIndex;
        private Integer shardSize;
        private Integer shardTotal;
        private String shardKey;
        //接收前端传入的base64{shard}
        private String shard;
        //vod视频
        private String vod;

        public String getUniId(){
            return  uniId;
        }
        public void setUniId(String uniId){
            this.uniId=uniId;
        }
        public String getName(){
            return  name;
        }
        public void setName(String name){
            this.name=name;
        }
        public String getPath(){
            return  path;
        }
        public void setPath(String path){
            this.path=path;
        }
        public String getModuleId(){
            return  moduleId;
        }
        public void setModuleId(String moduleId){
            this.moduleId=moduleId;
        }
        public String getUserId(){
            return  userId;
        }
        public void setUserId(String userId){
            this.userId=userId;
        }
        public String getSuffix(){
            return  suffix;
        }
        public void setSuffix(String suffix){
            this.suffix=suffix;
        }
        public Integer getSize(){
            return  size;
        }
        public void setSize(Integer size){
            this.size=size;
        }
        public String getContentType(){
            return  contentType;
        }
        public void setContentType(String contentType){
            this.contentType=contentType;
        }
        public Integer getTypeId(){
            return  typeId;
        }
        public void setTypeId(Integer typeId){
            this.typeId=typeId;
        }
        public String getUseType(){
            return  useType;
        }
        public void setUseType(String useType){
            this.useType=useType;
        }
        public Integer getIsShow(){
            return  isShow;
        }
        public void setIsShow(Integer isShow){
            this.isShow=isShow;
        }
        public Date getCreateTime(){
            return  createTime;
        }
        public void setCreateTime(Date createTime){
            this.createTime=createTime;
        }
        public Date getUpdateTime(){
            return  updateTime;
        }
        public void setUpdateTime(Date updateTime){
            this.updateTime=updateTime;
        }


    public Integer getShardIndex() {
        return shardIndex;
    }

    public void setShardIndex(Integer shardIndex) {
        this.shardIndex = shardIndex;
    }

    public Integer getShardSize() {
        return shardSize;
    }

    public void setShardSize(Integer shardSize) {
        this.shardSize = shardSize;
    }

    public Integer getShardTotal() {
        return shardTotal;
    }

    public void setShardTotal(Integer shardTotal) {
        this.shardTotal = shardTotal;
    }

    public String getShardKey() {
        return shardKey;
    }

    public void setShardKey(String shardKey) {
        this.shardKey = shardKey;
    }

    public String getShard() {
        return shard;
    }

    public void setShard(String shard) {
        this.shard = shard;
    }

    public String getVod() {
        return vod;
    }

    public void setVod(String vod) {
        this.vod = vod;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("FileDto{");
        sb.append("uniId='").append(uniId).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", path='").append(path).append('\'');
        sb.append(", moduleId='").append(moduleId).append('\'');
        sb.append(", userId='").append(userId).append('\'');
        sb.append(", suffix='").append(suffix).append('\'');
        sb.append(", size=").append(size);
        sb.append(", contentType='").append(contentType).append('\'');
        sb.append(", typeId=").append(typeId);
        sb.append(", useType='").append(useType).append('\'');
        sb.append(", isShow=").append(isShow);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", shardIndex=").append(shardIndex);
        sb.append(", shardSize=").append(shardSize);
        sb.append(", shardTotal=").append(shardTotal);
        sb.append(", shardKey='").append(shardKey).append('\'');
        sb.append(", shard='").append(shard).append('\'');
        sb.append(", vod='").append(vod).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
